#include<bits/stdc++.h>
using namespace std;
int n,t;
int a[200005];
int main()
{
    std::ios::sync_with_stdio(false);
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>t;
    for(int i=1;i<=t;i++){
        cin>>n;
        for(int j=1;j<=n;j++) cin>>a[j];
        cout<<"0";
    }
    return 0;
}
